<!DOCTYPE html>
<html>
<head>
    <!-- 加载 static 模板标签库 -->
    {% load static %}
    <title>添加投票问题</title>
    <link rel="stylesheet" href="{% static 'css/styles.css' %}">
</head>
<body>
    <h1>添加新的投票问题</h1>
    <form method="post">
        {% csrf_token %}
        <label for="question_text">问题:</label>
        <input type="text" id="question_text" name="question_text" required><br>
        
        <label>选项:</label><br>
        <input type="text" name="choice_text" required placeholder="选项1"><br>
        <input type="text" name="choice_text" required placeholder="选项2"><br>
        <input type="text" name="choice_text" placeholder="选项3（可选）"><br>
        <input type="text" name="choice_text" placeholder="选项4（可选）"><br>
        
        <button type="submit">提交</button>
    </form>
    <a href="{% url 'polls:index' %}" class="back-link">返回列表</a>
</body>
</html>